package com.example.service;

import com.example.entity.auth.Forget;
import com.example.entity.auth.Register;
import org.springframework.security.core.userdetails.UserDetailsService;

public interface AuthorizeService extends UserDetailsService {
    boolean checkUsernameExist(String username);
    String sendValidateEmail(String email,String sessionId,boolean hasAccount);
    String validateAndRegister(Register register, String sessionId);
    String validateAndResetPassword(Forget forget,String sessionId);

}
